import 'package:flutter/material.dart';
import 'package:flutter_color_plugin/flutter_color_plugin.dart';

class LessGroupPage extends StatelessWidget {
  const LessGroupPage({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LessGroupPage',
      theme: ThemeData(
        colorScheme:
            ColorScheme.fromSeed(seedColor: ColorUtil.color('#f2f2f2')),
        useMaterial3: true,
      ),
      home: Scaffold(
        appBar: AppBar(
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          title: const Text("LessWidget"),
          leading: GestureDetector(
            onTap: () {
              Navigator.pop(context);
            },
            child: Icon(Icons.arrow_back_sharp),
          ),
        ),
        body: Center(
          child: Column(
            children: [
              BackButton(),
              Chip(
                avatar: Icon(Icons.android),
                label: Text("你好"),
              ),
              Text("I am Android"),
              Card(
                elevation: 10,
                margin: EdgeInsets.all(10),
                color: ColorUtil.color('#ffff00'),
                child: Container(
                  padding: EdgeInsets.all(10),
                  child: Text('i am card'),
                ),
              ),
              Divider(
                height: 10,
                indent: 10,
                color: ColorUtil.color('#ff00ff'),
              ),
              AlertDialog(
                title: Text('Title'),
                content: Text('提示内容'),
                elevation: 10,

                shadowColor: ColorUtil.color('ff4499'),
              )
            ],
          ),
        ),
      ),
    );
  }
}
